const { createProxyMiddleware } = require('http-proxy-middleware')

module.exports = function(app) {

  app.use(createProxyMiddleware('/api', { 
       target: 'http://dmbox.jutku.com',
      //  target: 'http://localhost:7003',
       secure: false,
       changeOrigin: true,
       pathRewrite: {
        "^/api": "/api"
       },
    })
  );
};

